org.eclipse.vtp.desktop.core.wizards
Class AddDesignCanvasWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by org.eclipse.vtp.desktop.core.wizards.AddDesignCanvasWizard
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard

public class AddDesignCanvasWizard
extends org.eclipse.jface.wizard.Wizard

This wizard walks the user throught the creation of a new design canvas. The application that will contain the new canvas is provided to the constructor. The name of the new canvas is collected and compared to the names of the existing design canvases. If the name already exists, the finish button will be disabled. Otherwise the new canvas is created by the creator of this wizard upon its completion.

Version:
1.0
Author:
Trip

Field Summary
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
AddDesignCanvasWizard(java.lang.String[] currentNames)
          Creates a new AddDesignCanvasWizard instance with the given application.
 
Method Summary
 java.lang.String getCanvasName()
           
 boolean performFinish()
           
 
Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, addPages, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddDesignCanvasWizard

public AddDesignCanvasWizard(java.lang.String[] currentNames)
Creates a new AddDesignCanvasWizard instance with the given application.

Method Detail

getCanvasName

public java.lang.String getCanvasName()
Returns:
The name of the new design canvas

performFinish

public boolean performFinish()
Specified by:
performFinish in interface org.eclipse.jface.wizard.IWizard
Specified by:
performFinish in class org.eclipse.jface.wizard.Wizard